<?php
/**
 * Created by PhpStorm.
 * User: ytlmi
 * Date: 2018/4/18
 * Time: 9:45
 */

namespace app\snpdetection\model;


use app\common\model\BaseModel;

class Marker extends BaseModel
{
    /**
     * @param array $value
     * @throws \Exception
     * @return string
     */
    public function setAlleleAttr($value)
    {
        if (is_array($value)){
            return serialize($value);
        }else{
            throw new \Exception('错误的分型格式');
        }
    }
    public function getAlleleAttr($value)
    {
        return $this->unserialize($value);
    }
}